package javalianxi01;

public class Dog02 {
	private String name;
	private String strain;


	public String getStrain() {
		return strain;
	}
	public void setStrain(String strain) {
		this.strain = strain;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	public Dog02() {

	}
	public Dog02(String name, String strain) {
		this.name = name;
		this.strain = strain;
	}
	public void print(){
		System.out.println(getName()+"\t"+getStrain());
	}

}
